#!/bin/bash

# 高并发配置（5000+并发）
pm2 start /opt/mysql-rest/mysql-rest-$(uname -m) --name mysql-rest --interpreter none -- -r 0.0.0.0 -n 55001 -h 127.0.0.1 -o 3306 -u root -p Root__123 --disableAccessLog --mysqlConnectionLimit 1000 --mysqlMaxIdle 500 --mysqlIdleTimeout 30000 --mysqlQueueLimit 0 --mysqlWaitForConnections --mysqlConnectTimeout 5000 --mysqlEnableKeepAlive --mysqlKeepAliveInitialDelay 1000

# /opt/mysql-rest/mysql-rest-$(uname -m) -r 0.0.0.0 -n 55001 -h 127.0.0.1 -o 3306 -u root -p Root__123 --disableAccessLog --mysqlConnectionLimit 1000 --mysqlMaxIdle 500 --mysqlIdleTimeout 30000 --mysqlQueueLimit 0 --mysqlWaitForConnections --mysqlConnectTimeout 5000 --mysqlEnableKeepAlive --mysqlKeepAliveInitialDelay 1000
